home *** CD-ROM | disk | FTP | other *** search
/ PC World 2003 December / PCWorld_2003-12_cd.bin / Software / Vyzkuste / saproxy / SAproxyInstaller.exe / {app} / rules / regression_tests.cf < prev    next >
Text File  |  2003-03-17  |  6KB  |  115 lines

  1. # SpamAssassin rules file: regression tests
  2. #
  3. # This file contains tests perfomed on `make test`. It should not be
  4. # distributed.
  5. #
  6. # This program is free software; you can redistribute it and/or modify
  7. # it under the terms of either the Artistic License or the GNU General
  8. # Public License as published by the Free Software Foundation; either
  9. # version 1 of the License, or (at your option) any later version.
  10. #
  11. # See the file "License" in the top level of the SpamAssassin source
  12. # distribution for more details.
  13. #
  14. ###########################################################################
  15.  
  16. test DEAR_SOMETHING ok Dear IT professional,
  17. test DEAR_SOMETHING ok Dear Internet Investor:
  18. test DEAR_FRIEND ok Dear friend,
  19. test DEAR_FRIEND fail Dear Mr. Ithacus,
  20.  
  21. test FROM_ENDS_IN_NUMS     ok   matt1234@sergeant.org
  22. test FROM_ENDS_IN_NUMS     fail matt@sergeant.org
  23. test FROM_STARTS_WITH_NUMS     ok   1234matt@sergeant.org
  24. test FROM_STARTS_WITH_NUMS     fail matt@sergeant.org
  25. test FORGED_YAHOO_RCVD fail by mf1.lng.yahoo.com (8.11.1/8.11.1) id g3SDfPH19426
  26. test NUMERIC_HTTP_ADDR ok http://123456789/foo/bar
  27. test PGP_SIGNATURE_2 ok Content-Type: multipart/signed; micalg=pgp-sha1;protocol="application/pgp-signature"; boundary="n8g4imXOkfNTN/H1"
  28. test PGP_SIGNATURE_2 fail Content-Type: text/plain; charset=us-ascii
  29. #test SEARCH_ENGINE_PROMO ok    evaluated for FREE for its keyword placement in the top twenty major search engines
  30.  
  31. test US_DOLLARS fail $-$NFbMF$K!"A49q$+$iLd$$9g$o$;$,;&E~$7$F$$$^$9!#
  32. test US_DOLLARS ok Twenty Million Five Hundred Thousand United States Dollars
  33. test US_DOLLARS ok Eight million, Five Hundred United States dollars
  34. test US_DOLLARS ok One Million, Five Hundred Thousand U. S.  Dollars
  35. test US_DOLLARS ok EIHGTEEN MILLION UNITED STATE DOLLARS
  36. test US_DOLLARS ok 24million U.S dollars cash
  37. test US_DOLLARS ok 47 million US DOLLARS
  38. test US_DOLLARS ok FIVE MILLION FIVE HOUNDRED THOUSAND CANADIAN DOLLAS)
  39.  
  40. test US_DOLLARS_2 fail JP charset test: this should not match: $1 $
  41. test US_DOLLARS_2 fail JP charset test: this should not match: $1$
  42. test US_DOLLARS_2 fail $-$NFbMF$K!"A49q$+$iLd$$9g$o$;$,;&E~$7$F$$$^$9!#
  43. test US_DOLLARS_2 ok of USD$17.4M only
  44. test US_DOLLARS_2 ok amount $21.5m represents
  45. test US_DOLLARS_2 ok of US$26.4 million
  46. test US_DOLLARS_2 ok the $21.5 million,
  47.  
  48. test US_DOLLARS_3 fail $-$NFbMF$K!"A49q$+$iLd$$9g$o$;$,;&E~$7$F$$$^$9!#
  49. test US_DOLLARS_3 ok OF US$75,000,000.00 ( SEVENTYFIVE
  50. test US_DOLLARS_3 ok DOLLAR(USD$30,000,000,00.)
  51. test US_DOLLARS_3 ok ($21,500,000.)
  52. test US_DOLLARS_3 ok ($ 152,000.000.00)
  53.  
  54. # note: have to use "." instead of "#", as it's the comment char
  55.  
  56. test SAVE_ON_INSURANCE      ok Compare and Save Instantly On Your Auto Insurance
  57.  
  58. test TRACKER_ID     ok          2174Hzdm0-105YUqT8863DiDg0-616mqbE4931HEBc0-732qBHd6314l52
  59. test TRACKER_ID     ok          ofsknxxdqgtgqvsoiytkivajvtj
  60. test TRACKER_ID     fail        <!-- ADMINISTRIVIA -->
  61. test TRACKER_ID     fail        Donau-Dampfschifffahrts-Kapitaen
  62.  
  63. test __OBFUSCATING_COMMENT ok     This is a te<!--foo-->st
  64. test __OBFUSCATING_COMMENT fail   Not a <!-- problem --> here
  65. test __OBFUSCATING_COMMENT fail   or<!--problem--> here
  66. test __OBFUSCATING_COMMENT fail   This <tag><!-- neither --></tag> I hope
  67.  
  68. test FROM_EGROUPS  ok           sentto-2537484-52529-1020428367-Sxm=olswang.com@returns.groups.yahoo.com
  69. test FROM_EGROUPS  fail         spammer@returns.groups.yahoo.com
  70.  
  71. test HIDE_WIN_STATUS ok <a href=foo onMouseOver="window.status='bar';>
  72. test HIDE_WIN_STATUS fail attributes like href=foo onMouseOver="window.status='bar'"
  73. test HIDE_WIN_STATUS fail attributes like href=foo onMouseOver="flashiness"
  74.  
  75. test LINK_TO_NO_SCHEME ok <a href=www.foo.com/>foo</a>
  76. test LINK_TO_NO_SCHEME ok <a href='www.foo.com'>foo</a>
  77. test LINK_TO_NO_SCHEME ok <a href="www.geocities.com/somecrap">foo</a>
  78. test LINK_TO_NO_SCHEME fail <a href=http://www.foo.com/>foo</a>
  79. test LINK_TO_NO_SCHEME fail <a href="http://www.foo.com">foo</a>
  80. test LINK_TO_NO_SCHEME fail <a href="nextpage.html">foo</a>
  81. test LINK_TO_NO_SCHEME fail <a href="../index.html">foo</a>
  82.  
  83. test HTML_WIN_OPEN ok <script> win=window.open("http://foo/") win.blur() window.focus() </script>
  84. test HTML_WIN_OPEN ok <body onload='win=window.open("http://foo/")'>
  85. test HTML_WIN_OPEN fail The window.open() function
  86.  
  87. test HTML_WIN_BLUR ok <script> win=window.open("http://foo/") win.blur() window.focus() </script>
  88. test HTML_WIN_BLUR ok <body onload='win=window.open("http://foo/"); win.blur()'>
  89. test HTML_WIN_BLUR fail The win.blur() function
  90.  
  91. test EMAIL_ATTRIBUTION ok At 15:43 2/26/2002 +0000, Rich Webster wrote:
  92. test EMAIL_ATTRIBUTION ok On Tue, 2001-12-04 at 04:45, Matthew Cline wrote:
  93. test EMAIL_ATTRIBUTION ok foo@bar.com writes:
  94. test EMAIL_ATTRIBUTION ok --- In FruityGroup@y..., hopefuldreamer13@a... wrote:
  95. test EMAIL_ATTRIBUTION fail foo@bar.com writed:
  96. test EMAIL_ATTRIBUTION fail wrote:
  97.  
  98. test BAD_CREDIT ok   no credit checks
  99. test BAD_CREDIT ok   reestablish credit
  100. test BAD_CREDIT ok   establish good credit
  101. test BAD_CREDIT ok   repair your credit
  102. test BAD_CREDIT fail NOTICE: Your credit card company may place the words "San Antonio"
  103.  
  104. test NEW_DOMAIN_EXTENSIONS ok   new domain extension
  105. test NEW_DOMAIN_EXTENSIONS ok   new .NAME domain extension
  106. test NEW_DOMAIN_EXTENSIONS ok   New TLD Extension
  107. test NEW_DOMAIN_EXTENSIONS ok   new extension
  108. test NEW_DOMAIN_EXTENSIONS fail newt extension
  109. test NEW_DOMAIN_EXTENSIONS fail renew extension
  110.  
  111. test DOMAIN_BODY ok   Get .BIZ while it's hot!
  112. test DOMAIN_BODY ok   .info
  113. test DOMAIN_BODY ok   Get new .us domains
  114. test DOMAIN_BODY fail www.fobar.biz
  115.